package com.sgy.springboot_demo.pojo;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Data
@Component
@ConfigurationProperties(prefix = "person") // 实现批量注入
public class Person {

    private int id;

    private String name;

    private List hobby;

    private String[] family;

    private Map map;

    private Pet pet;
}
